Skip to content

feat: DH-20769: Use new JS API in useViewportData to retrieve data#2557

Merged
ericlln merged 25 commits intodeephaven:mainfrom
ericlln:DH-20769_use-new-jsapi-in-use-viewport-data
Oct 29, 2025
Merged

feat: DH-20769: Use new JS API in useViewportData to retrieve data#2557
ericlln merged 25 commits intodeephaven:mainfrom
ericlln:DH-20769_use-new-jsapi-in-use-viewport-data

Conversation

@ericlln
Copy link
Copy Markdown
Contributor

@ericlln ericlln commented Oct 27, 2025

  • Added a new optional argument to useViewportData to accept ViewportSubscriptionOptions. If this is provided and the provided table is not a tree table, the new createViewportSubscription method introduced in feat!: DH-19895: New JS API for requesting data deephaven-core#7178 will be used to retrieve data from the table
  • Updated @deephaven/jsapi-types to ^1.0.0-dev0.40.4

@ericlln ericlln self-assigned this Oct 27, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 27, 2025

Codecov Report

❌ Patch coverage is 92.59259% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 44.36%. Comparing base (4ee9308) to head (026cb7d).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...api-components/src/useSetPaddedViewportCallback.ts 92.30% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2557      +/-   ##
==========================================
+ Coverage   44.08%   44.36%   +0.28%     
==========================================
  Files         764      764              
  Lines       43078    43104      +26     
  Branches    11066    11078      +12     
==========================================
+ Hits        18990    19125     +135     
+ Misses      24041    23963      -78     
+ Partials       47       16      -31     
Flag Coverage Δ
unit 44.36% <92.59%> (+0.28%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ericlln ericlln marked this pull request as ready for review October 28, 2025 17:43
@ericlln ericlln requested a review from bmingles October 28, 2025 17:43
@bmingles
Copy link
Copy Markdown
Contributor

I think the root package.json needs to have "@deephaven/jsapi-types" version updated as well and run npm install again to make sure package-lock is up-to-date

Comment thread packages/jsapi-components/src/useSetPaddedViewportCallback.ts Outdated
Comment thread packages/jsapi-components/src/useSetPaddedViewportCallback.ts Outdated
Comment thread packages/jsapi-components/src/useSetPaddedViewportCallback.ts Outdated
Comment thread packages/jsapi-components/src/useSetPaddedViewportCallback.test.ts Outdated
Comment thread packages/jsapi-components/src/useSetPaddedViewportCallback.ts Outdated
Comment thread packages/jsapi-components/src/useSetPaddedViewportCallback.test.ts Outdated
Comment thread packages/jsapi-components/src/useViewportData.ts
Comment thread packages/jsapi-components/src/useSetPaddedViewportCallback.ts
@ericlln ericlln requested a review from bmingles October 28, 2025 21:05
Comment thread package-lock.json
Copy link
Copy Markdown
Contributor

@bmingles bmingles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left inline comments about an issue with the useEffect and the package-lock

@ericlln ericlln requested a review from bmingles October 29, 2025 18:30
Comment thread packages/jsapi-components/src/useSetPaddedViewportCallback.ts Outdated
Comment thread packages/jsapi-components/src/useSetPaddedViewportCallback.test.ts
Copy link
Copy Markdown
Contributor

@bmingles bmingles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. Left a comment about a place where we can consolidate some duplicate code + an assertion to add to a unit test.

Comment thread packages/jsapi-components/src/useSetPaddedViewportCallback.ts Outdated
bmingles
bmingles previously approved these changes Oct 29, 2025
Copy link
Copy Markdown
Contributor

@bmingles bmingles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!!

@ericlln ericlln merged commit 4d7c106 into deephaven:main Oct 29, 2025
11 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants